<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");

//获取板块的设置
include_once("model/setting.php");

$data['member']=select_one_line_all_items($table_Prefix."member","nid = '".$_REQUEST ['nid']."'");

//把用户的标签拆成数组，用于比较
$now_member_tag_array=explode(",",$data['member']['tag']);
//把用户的评级拆成数组，用于比较
$now_member_rank_array=explode(",",$data['member']['rank']);
//把用户的开局权限拆成数组
$now_member_event_author_array=explode(",",$data['member']['event_author']);

//把设置种的标签拆成数组，用于循环比较
$tag_array = explode(";", $member_setting['tag']);

//拆成数组，用于循环比较
$rank_array = explode(";", $member_setting['rank']);

//拆成数组，用于循环
$contact_way_array = explode(";", $member_setting['contact_way']);

//获取所有用到的用户
$member_list_1d_array = transform_2darray_in_1darray_with_new_key($event_comment, "nid", "member_nid");
$member_nid_list_str  = implode("','", $member_list_1d_array);
$member_list          = select_lines_all_items($table_Prefix . "member", "", "nid in ('" . $member_nid_list_str . "')", "");
$member_name_list     = transform_2darray_in_1darray_with_new_key($member_list, "nid", "nickname");

$order_collect  = select_lines_all_items($table_Prefix."order_info","order_id desc","user_id = '".$_REQUEST ['nid']."' and order_name != 'sms100 ' and order_name != 'sms_and_search ' and order_name != 'sms500'","");

//获取所有用到的活动
$member_event_list_1d_array = transform_2darray_in_1darray_with_new_key($order_collect,"order_id","event_id");
$member_event_nid_list_str  = implode("','",$member_event_list_1d_array);

//获取当前用户所属的学生信息
$student          = select_lines_all_items($table_prefix."member_child","school asc , nid desc","member_nid='".$_REQUEST['nid']."'","");
$product_set_list = select_lines_all_items($table_Prefix."product_data","","status = '正常' ","");


?>

